package com.ruoyi.cmdb.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 容器对象 tb_container
 * 
 * @author ruoyi
 * @date 2023-01-27
 */
public class Container extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private String id;

    /** name */
    @Excel(name = "name")
    private String name;

    /** 环境 （0dev 1test 2prev 3prod） */
    @Excel(name = "环境 ", readConverterExp = "0=dev,1=test,2=prev,3=prod")
    private String env;

    /** cpu */
    @Excel(name = "cpu")
    private Long cpu;

    /** 内存 */
    @Excel(name = "内存")
    private Long memory;

    /** ip */
    @Excel(name = "ip")
    private String ip;

    /** 宿主 */
    @Excel(name = "宿主")
    private String master;

    /** 宿主类型 */
    @Excel(name = "宿主类型")
    private String masterType;

    /** 状态（0Pending 1Running 2Terminating 3Evicted） */
    @Excel(name = "状态", readConverterExp = "0=Pending,1=Running,2=Terminating,3=Evicted")
    private String status;

    /** 镜像 */
    @Excel(name = "镜像")
    private String image;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setEnv(String env) 
    {
        this.env = env;
    }

    public String getEnv() 
    {
        return env;
    }
    public void setCpu(Long cpu) 
    {
        this.cpu = cpu;
    }

    public Long getCpu() 
    {
        return cpu;
    }
    public void setMemory(Long memory) 
    {
        this.memory = memory;
    }

    public Long getMemory() 
    {
        return memory;
    }
    public void setIp(String ip) 
    {
        this.ip = ip;
    }

    public String getIp() 
    {
        return ip;
    }
    public void setMaster(String master) 
    {
        this.master = master;
    }

    public String getMaster() 
    {
        return master;
    }
    public void setMasterType(String masterType) 
    {
        this.masterType = masterType;
    }

    public String getMasterType() 
    {
        return masterType;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("env", getEnv())
            .append("cpu", getCpu())
            .append("memory", getMemory())
            .append("ip", getIp())
            .append("master", getMaster())
            .append("masterType", getMasterType())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("status", getStatus())
            .append("image", getImage())
            .toString();
    }
}
